A4J.AJAX.onError = function(req, status, message) {
	window.location.href = "default.jsp";
}

A4J.AJAX.onExpired = function(loc, expiredMsg) {
	window.location.href = "default.jsp";
}

function checkAllCheckboxesInTable(inputId, state) {
	var commonIdPart = inputId.substr(0, inputId.lastIndexOf(':'));
	var commonIdPart1 = commonIdPart.substr(0, commonIdPart.lastIndexOf(':'));
	var tableElement1 = document.getElementById(commonIdPart1);
	var inputs1 = tableElement1.getElementsByTagName('input');
	for ( var i = 0; i < inputs1.length; i++) {
		var input1 = inputs1[i];
		var elem = document.getElementById(commonIdPart1 + ':' + i + ':selectedItem');
		if (elem.getAttribute('type') == 'checkbox' && state && elem.checked && inputId != commonIdPart1 + ':' + i + ':selectedItem') {
			elem.checked = false;
		}
	}
}
